package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.entity.Result;
import com.itheima.pojo.Food;

import java.util.List;

/**
 * @author Administrator
 */
public interface FoodService {
    /**
     * 添加膳食
     * @param foods 前台上传后，遍历出的food对象集合
     */
    public void upload(List<Food> foods);

    public PageResult findPage(QueryPageBean queryPageBean);

    public Food findById(Integer id);

    public void add(Food food);

    public void edit(Food food);

    public void delete(Integer id);
}
